-- GENERATED SPELL FOR [Refuge Pointe Defender] --


function spell0_10696(pUnit, Event) --@Defensive Stance,Self--
pUnit:FullCastSpellOnTarget(7164,pUnit)
pUnit:RegisterEvent('Sorts_10696', 600, 1)
end

function spell1_10696(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10696', 8283, 1)
end

function Sorts_10696(pUnit, Event)
local choix_sorts_10696 = math.random(0, 1)
if choix_sorts_10696 == 0 then
pUnit:RegisterEvent('spell0_10696', 1, 1)
end
if choix_sorts_10696 == 1 then
pUnit:RegisterEvent('spell1_10696', 1, 1)
end
end

function mob10696_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10696', math.random(1500, 3000), 1)
end

function mob10696_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10696_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10696_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10696, 1, 'mob10696_Action')
RegisterUnitEvent(10696, 2, 'mob10696_Leave')
RegisterUnitEvent(10696, 3, 'mob10696_Kill')
RegisterUnitEvent(10696, 4, 'mob10696_Die')
